class AutoUsersController < ApplicationController
  layout "basic_layout"
  before_filter :admin_required

  active_scaffold :auto_user do |config|
    config.list.per_page = 10
    config.columns = [:id, :uid, :username, :password, :title, :firstname, :lastname, :admin_flag, :u_status]
    config.list.columns.exclude :password

    config.columns[:u_status].form_ui = :select
    config.columns[:u_status].options = {:options => ['Active','Deleted']}
    config.create.columns.exclude :id
    config.update.columns.exclude :id
    config.list.sorting = {:id => 'ASC'}
  end
end
